package com.lxd.property.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lxd.property.dao.PricelistMapper;
import com.lxd.property.pojo.Pricelist;
import com.lxd.property.service.PricelistService;
@Service("pricelistService")
@Transactional
public class PricelistServiceImpl implements PricelistService {
	
	@Autowired
	private PricelistMapper pricelistMapper;

	@Override
	public List<Pricelist> findAllPricelist(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return pricelistMapper.findAllPricelist(map);
	}

	@Override
	public Long findAllPricelistCount(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return pricelistMapper.findAllPricelistCount(map);
	}

	@Override
	public Pricelist findPricelistById(Integer id) {
		// TODO Auto-generated method stub
		return pricelistMapper.findPricelistById(id);
	}

	@Override
	public Integer upadtePricelist(Pricelist pricelist) {
		// TODO Auto-generated method stub
		return pricelistMapper.upadtePricelist(pricelist);
	}



}
